﻿using System.Collections.Generic;

public class CompareMgr
{
    class CompareInt : IComparer<int>
    {
        // 由小到大排序
        public int Compare(int a, int b)
        {
            return a.CompareTo(b);
        }
    }

    class Comparefloat : IComparer<float>
    {
        // 由小到大排序
        public int Compare(float a, float b)
        {
            return a.CompareTo(b);
        }
    }
}